<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/static/h-ui.admin/css/style.css" />

<!--控制 input框 宽度-->
<style type="text/css"> 
.tabwidth{
	width:30px;
}
textarea{ 
	resize:none; 
	width:400px; 
	height:100px;
}
</style>
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>上报本月耗材</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>  耗材管理<span class="c-gray en">&gt;</span> 耗材上报<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<form action="{:U('Order/doUpbao')}" method="post">
	<div class="page-container">

		<!--隐藏的耗材展示框-->
		<div class="" style="display:none;">;
			<image src="__PUBLIC__/image/test.jpg" style="width:300px;">
		</div>
		<!--end隐藏的耗材展示框-->
		<div class="mt-20">		
			<h2 class="text-c">{$time=time()|date="Y年m月",###} &nbsp;{$Think.session.home.branchname}耗材上报</h2>
			<span style="color:#F00; font-size:15px;">每月21日前可上报、修改当月耗材</span>	
			<table class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">
						<th width="30">耗材名称</th>
						<!--遍历耗材名称-->
						<volist name="goodsList" id="vo">
							<th width="30">{$vo.goodsname}</th>	
						</volist>
						<!-- end-->
					</tr>
				</thead>
				<tbody class="tabwidth">
					<tr class="text-c">
						<td>单价</td>
						<!--遍历耗材价格-->
						<volist name="goodsList" id="vo">
							<td>{$vo.price}</td>
						</volist>
						<!--end 遍历耗材价格-->
					</tr>
					<tr class="text-c">
						<td>上报数量</td>
						<!--上报数量-->
						<volist name="goodsList" id="vo">
							<input type="hidden" name="gid[]" value="{$vo.gid}">
							<td><input type="text" name="num[]" class="tabwidth" oninput="value=value.replace(/[^\d]/g,'')"></td>
						</volist>
						<!--end 上报数量-->
					</tr>
					<tr class="text-c">
						<td>小计</td>
						<!--遍历 小计-->
						<volist name="goodsList" id="vo">
							<td><span name="total[]" id="total_{$vo.gid}"></span>10</td>
						</volist>
						<!--end 遍历小计-->
					</tr>
				</tbody>
			</table>	
				<p><span style="font-size: 20px;">总计：¥</span><span id="total_all">  333</span></p>
		</div>
		<div class="mt-20">
			<textarea name="comm" placeholder="在此输入备注" ></textarea>
			<button class="btn btn-success" type="submit">确认上报</button>
		</div>
	</div>
</form>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__PUBLIC__/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__PUBLIC__/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
	/*输入数目 显示小计价格*/
	function total(total_gid,num){
		
	}

	/**如果已过21日 禁止上报 隐藏上报按**/


	});
	
	

</script>
</body>
</html>